/**
 * 返回版面小图标URL
 * @param forumId Long
 * @param colTid Long?
 * @return String
 */
export function getIconUrl(forumId?: number, colTid ?: number): string | undefined {
    if (colTid != null && colTid != 0) {
        return `https://img4.nga.178.com/proxy/cache_attach/ficon/${colTid}v.png`
    }
    if (forumId != null && forumId != 0) {
        return `https://img4.nga.178.com/proxy/cache_attach/ficon/${forumId}u.png`
    }
    return undefined
}

/**
 * 返回版面/合集大图标URL
 * @param id number 合集tid或版面id
 * @return String
 */
export function getBigIconUrl(id: number | undefined): string | undefined {
    return id ? `https://img4.nga.178.com/ngabbs/nga_classic/f/app/${id}.png` : undefined
}
